package com.yhx.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 角色与权限的中间表，一个角色有多个权限

 * @TableName t_role_permission
 */
@TableName(value ="t_role_permission")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RolePermission implements Serializable {

    private Integer roleId;


    private Integer permissionId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}